{% extends 'basic_app/master.html' %}
{% block tag_left %}
    {% include 'oratk_app/tag_left_user.html' %}
{% endblock %}
{% block title %}
    <title>ORATK</title>
{% endblock %}
{% block userinfo %}
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <h2 class="page-header">编辑功能页</h2>
        <form class="form-horizontal" action="{{ request.path }}"   method="post">
            <div class="form-group" style="display:none" >
                <label  class="col-sm-2 control-label">id：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control"  placeholder="id" name="v_id" value={{ oratk_tool_info_result.id }} >
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">name：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control"  placeholder="功能名称" name="add_name" value="{{ oratk_tool_info_result.name }}" >
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">sqltext：</label>
                <div class="col-sm-10"  >
                    <textarea type="text"  style="height: 110px;" class="form-control" placeholder="sqltext"  name="add_sqltext" value="{{ oratk_tool_info_result.sqltext }}" >{{ oratk_tool_info_result.sqltext }}</textarea>
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">status：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="status" name="add_status" value={{ oratk_tool_info_result.status }} >
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">remake：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="备注"  name="add_remake" value={{ oratk_tool_info_result.remake }} >
                </div>
            </div>
            <div class="col-sm-10">
                <div style="text-align:center;vertical-align:middle;"><button type="submit" class="btn ">提交</button></div>
            </div>
        </form>
    </div>
{% endblock  %}
{% block script %}
    <script>
        window.onload=function(){
            var type_set = document.getElementById("type_select").getAttribute("type");
            document.getElementById("type_select").value=type_set}
    </script>
{% endblock %}